// 常量路由
export const constantRoute = [
    // 登录
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/views/Login.vue'),
        meta: {
            title: '登录',
            icon: '登录',
            hidden: false
        }
    },
    // 首页
    {
        path: '/',
        name: 'Index',
        component: () => import('@/views/Layout.vue'),
        redirect: '/home',
        meta: {
            title: 'Layout',
            icon: '首页',
            hidden: true
        },
        children: [
            {
                path: '/home',
                name: 'Home',
                component: () => import('@/views/Home.vue'),
                meta: {
                    title: '首页',
                    icon: '首页',
                    hidden: true
                }
            }
        ]
    },
     // 404页面
     {
        path: '/404',
        name: '404',
        component: () => import('@/views/404.vue'),
        meta: {
            title: '404',
            icon: '404',
            hidden: false
        }
    }
]

// 异步路由
export const asyncRouter = [
    //权限管理
    {
        path: '/acl',
        name: 'Acl',
        component: () => import('@/views/Layout.vue'),
        meta: {
            title: '权限管理',
            icon: '权限管理',
            hidden: true
        },
        children: [
            {
                path: '/user',
                name: 'User',
                component: () => import('@/views/acl/User.vue'),
                meta: {
                    title: '用户管理',
                    icon: '用户管理',
                    hidden: true
                }
            },
            {
                path: '/role',
                name: 'Role',
                component: () => import('@/views/acl/Role.vue'),
                meta: {
                    title: '角色管理',
                    icon: '角色管理',
                    hidden: true
                }
            },
            {
                path: '/menumanagement',
                name: 'Menumanagement',
                component: () => import('@/views/acl/Menumangement.vue'),
                meta: {
                    title: '菜单管理',
                    icon: '菜单管理',
                    hidden: true
                }
            }
        ]
    },
    //箱单组
    {
        path: '/box_list',
        name: 'Box_list',
        component: () => import('@/views/Layout.vue'),
        meta: {
            title: '箱单组',
            icon: '箱单组',
            hidden: true
        },
        children: [
            {
                path: '/extracted_data',
                name: 'Extracted_data',
                component: () => import('@/views/box_list/Extracted_data.vue'),
                meta: {
                    title: '提取数据',
                    icon: '提取数据',
                    hidden: true
                }
            },
            {
                path: '/report_generated',
                name: 'Report_generated',
                component: () => import('@/views/box_list/Report_generated.vue'),
                meta: {
                    title: '生成箱单报表',
                    icon: '生成箱单报表',
                    hidden: true
                }
            },
            {
                path: '/daily_shipments',
                name: 'Daily_shipments',
                component: () => import('@/views/box_list/Daily_shipments.vue'),
                meta: {
                    title: '每日出箱单',
                    icon: '每日出箱单',
                    hidden: true
                }
            },
            {
                path: '/unshipped_box_list',
                name: 'Unshipped_box_list',
                component: () => import('@/views/box_list/Unshipped_box_list.vue'),
                meta: {
                    title: '未出箱单',
                    icon: '未出箱单',
                    hidden: true
                }
            },
            {
                path: '/unshipped_list',
                name: 'Unshipped_list',
                component: () => import('@/views/box_list/Unshipped_list.vue'),
                meta: {
                    title: '未发货清单',
                    icon: '未发货清单',
                    hidden: true
                }
            }
        ]
    },
    // 拣货组
    {
        path: '/picking_team',
        name: 'Picking_team',
        component: () => import('@/views/Layout.vue'),
        meta: {
            title: '拣货组',
            icon: '拣货组',
            hidden: true
        },
        children: [
            {
                path: '/distribute_contract',
                name: 'Distribute_contract',
                component: () => import('@/views/picking_team/Distribute_contract.vue'),
                meta: {
                    title: '派发合同',
                    icon: '派发合同',
                    hidden: true
                }
            },
            {
                path: '/print_picking_list',
                name: 'Print_picking_list',
                component: () => import('@/views/picking_team/Print_picking_list.vue'),
                meta: {
                    title: '打印拣货单',
                    icon: '打印拣货单',
                    hidden: true
                }
            },
            {
                path: '/receive_picking_list',
                name: 'Receive_picking_list',
                component: () => import('@/views/picking_team/Receive_picking_list.vue'),
                meta: {
                    title: '领取拣货单',
                    icon: '领取拣货单',
                    hidden: true
                }
            },
            {
                path: '/return_set_location',
                name: 'Return_set_location',
                component: () => import('@/views/picking_team/Return_set_location.vue'),
                meta: {
                    title: '回齐套货位',
                    icon: '回齐套货位',
                    hidden: true
                }
            },
            {
                path: '/print_high_shelf',
                name: 'Print_high_shelf',
                component: () => import('@/views/picking_team/Print_high_shelf.vue'),
                meta: {
                    title: '打印高架货位',
                    icon: '打印高架货位',
                    hidden: true
                }
            },
            {
                path: '/picking_query',
                name: 'Picking_query',
                component: () => import('@/views/picking_team/Picking_query.vue'),
                meta: {
                    title: '拣料查询',
                    icon: '拣料查询',
                    hidden: true
                }
            }
        ]
    },
    //签单组
    {
        path: '/signing_team',
        name: 'Signing_team',
        component: () => import('@/views/Layout.vue'),
        meta: {
            title: '签单组',
            icon: '签单组',
            hidden: true
        },
        children: [
            {
                path: '/box_list_import',
                name: 'Box_list_import',
                component: () => import('@/views/signing_team/Box_list_import.vue'),
                meta: {
                    title: '装箱清单导入',
                    icon: '装箱清单导入',
                    hidden: true
                }
            },
            {
                path: '/print_signing_data',
                name: 'Print_signing_data',
                component: () => import('@/views/signing_team/Print_signing_data.vue'),
                meta: {
                    title: '打印签单数据',
                    icon: '打印签单数据',
                    hidden: true
                }
            },
            {
                path: '/sign_contract',
                name: 'Sign_contract',
                component: () => import('@/views/signing_team/Sign_contract.vue'),
                meta: {
                    title: '签单核对',
                    icon: '签单核对',
                    hidden: true
                }
            },
            {
                path: '/picking_status_table',
                name: 'Picking_status_table',
                component: () => import('@/views/signing_team/Picking_status_table.vue'),
                meta: {
                    title: '拣货状态表',
                    icon: '拣货状态表',
                    hidden: true
                }
            },
            {
                path: '/take_photo',
                name: 'Take_photo',
                component: () => import('@/views/signing_team/Take_photo.vue'),
                meta: {
                    title: '拍照',
                    icon: '拍照',
                    hidden: true
                }
            }
        ]
    },
    //包装组
    {
        path: '/packaging_team',
        name: 'Packaging_team',
        component: () => import('@/views/Layout.vue'),
        meta: {
            title: '包装组',
            icon: '包装组',
            hidden: true
        },
        children: [
            {
                path: '/packaging_packing',
                name: 'Packaging_packing',
                component: () => import('@/views/packaging_team/Packaging_packing.vue'),
                meta: {
                    title: '装箱',
                    icon: '装箱',
                    hidden: true
                }
            },
            {
                path: '/packaging_report',
                name: 'Packaging_report',
                component: () => import('@/views/packaging_team/Packaging_report.vue'),
                meta: {
                    title: '包装报表',
                    icon: '包装报表',
                    hidden: true
                }
            }
        ]
    },
    // 国内发货
    {
        path: '/domestic_shipping',
        name: 'Domestic_shipping',
        component: () => import('@/views/Layout.vue'),
        meta: {
            title: '国内发货',
            icon: '国内发货',
            hidden: true
        },
        children: [
            {
                path: '/data_import',
                name: 'Data_import',
                component: () => import('@/views/domestic_shipping/Data_import.vue'),
                meta: {
                    title: '数据导入',
                    icon: '数据导入',
                    hidden: true
                }
            },
            {
                path: '/distribute_contract',
                name: 'Distribute_contract',
                component: () => import('@/views/domestic_shipping/Distribute_contract.vue'),
                meta: {
                    title: '派发拣料单',
                    icon: '派发拣料单',
                    hidden: true
                }
            },
            {
                path: '/print_picking_list',
                name: 'Print_picking_list',
                component: () => import('@/views/domestic_shipping/Print_picking_list.vue'),
                meta: {
                    title: '打印拣料单',
                    icon: '打印拣料单',
                    hidden: true
                }
            },
            {
                path: '/receive_order',
                name: 'Receive_order',
                component: () => import('@/views/domestic_shipping/Receive_order.vue'),
                meta: {
                    title: '领拣货单',
                    icon: '领拣货单',
                    hidden: true
                }
            },
            {
                path: '/return_set_location',
                name: 'Return_set_location',
                component: () => import('@/views/domestic_shipping/Return_set_location.vue'),
                meta: {
                    title: '回齐套货位',
                    icon: '回齐套货位',
                    hidden: true
                }
            },
            {
                path: '/Print_high_shelf_location',
                name: 'Print_high_shelf_location',
                component: () => import('@/views/domestic_shipping/Print_high_shelf_location.vue'),
                meta: {
                    title: '打印高架货位',
                    icon: '打印高架货位',
                    hidden: true
                }
            },
            {
                path: '/loading_check',
                name: 'Loading_check',
                component: () => import('@/views/domestic_shipping/Loading_check.vue'),
                meta: {
                    title: '装车核对',
                    icon: '装车核对',
                    hidden: true
                }
            },
            {
                path: '/box_list_verification',
                name: 'Box_list_verification',
                component: () => import('@/views/domestic_shipping/Box_list_verification.vue'),
                meta: {
                    title: '装箱单核对',
                    icon: '装箱单核对',
                    hidden: true
                }
            },
            {
                path: '/shipping_submission',
                name: 'Shipping_submission',
                component: () => import('@/views/domestic_shipping/Shipping_submission.vue'),
                meta: {
                    title: '发货提交',
                    icon: '发货提交',
                    hidden: true
                }
            },
            {
                path: '/picking_status_table',
                name: 'Picking_status_table',
                component: () => import('@/views/domestic_shipping/Picking_status_table.vue'),
                meta: {
                    title: '拣货状态表',
                    icon: '拣货状态表',
                    hidden: true
                }
            }
        ]
    },
    //资产管理
    {
        path: '/asset_management',
        name: 'Asset_management',
        component: () => import('@/views/Layout.vue'),
        meta: {
            title: '资产管理',
            icon: '资产管理',
            hidden: true
        },
        children: [
            {
                path: '/asset_maintenance',
                name: 'Asset_maintenance',
                component: () => import('@/views/asset_management/Asset_maintenance.vue'),
                meta: {
                    title: '数据维护',
                    icon: '数据维护',
                    hidden: true
                }
            },
            {
                path: '/asset_inspection',
                name: 'Asset_inspection',
                component: () => import('@/views/asset_management/Asset_inspection.vue'),
                meta: {
                    title: '资产点检',
                    icon: '资产点检',
                    hidden: true
                }
            },
            {
                path: '/asset_inspection_query',
                name: 'Asset_inspection_query',
                component: () => import('@/views/asset_management/Asset_inspection_query.vue'),
                meta: {
                    title: '资产点检查询',
                    icon: '资产点检查询',
                    hidden: true
                }
            }
        ]
    }
]



//任意路由
export const anyRoute = {
    //任意路由
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'Any',
    meta: {
      title: '任意路由',
      hidden: false,
      icon: '任意路由',
    },
  }